/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package orchestrarehearsal;

/**
 *
 * @author Guillaume
 */
public class Data {
    private final int nbPieces;
    private final int nbPlayers;
    private final int[] d;    //pieces' time
    private final int[][] w;  //Matrix w where w[i][j]=1 if player i play piece j

    public Data() {
        this.nbPieces = 9;
        this.nbPlayers = 5;
        this.d = new int[nbPieces];
        d[0]=2;
        d[1]=4;
        d[2]=1;
        d[3]=3;
        d[4]=3;
        d[5]=2;
        d[6]=5;
        d[7]=7;
        d[8]=6;
        
        this.w = new int[nbPlayers][nbPieces];
        w[0][0]=1;
        w[0][1]=1;
        w[0][2]=0;
        w[0][3]=1;
        w[0][4]=0;
        w[0][5]=1;
        w[0][6]=1;
        w[0][7]=0;
        w[0][8]=1;
        
        w[1][0]=1;
        w[1][1]=1;
        w[1][2]=0;
        w[1][3]=1;
        w[1][4]=1;
        w[1][5]=1;
        w[1][6]=0;
        w[1][7]=1;
        w[1][8]=0;
        
        w[2][0]=1;
        w[2][1]=1;
        w[2][2]=0;
        w[2][3]=0;
        w[2][4]=0;
        w[2][5]=0;
        w[2][6]=1;
        w[2][7]=1;
        w[2][8]=0;
        
        w[3][0]=1;
        w[3][1]=0;
        w[3][2]=0;
        w[3][3]=0;
        w[3][4]=1;
        w[3][5]=1;
        w[3][6]=0;
        w[3][7]=0;
        w[3][8]=1;
        
        w[4][0]=0;
        w[4][1]=0;
        w[4][2]=1;
        w[4][3]=0;
        w[4][4]=1;
        w[4][5]=1;
        w[4][6]=1;
        w[4][7]=1;
        w[4][8]=0;
        
    }

    public int getNbPieces() {
        return nbPieces;
    }

    public int getNbPlayers() {
        return nbPlayers;
    }

    public int[] getD() {
        return d;
    }

    public int[][] getW() {
        return w;
    }
}
